package com.ysjy.course.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wkbb.common.handler.JsonUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("场地表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class YsSite implements Serializable {

    @ApiModelProperty("ID")
    private Integer id;
    @ApiModelProperty("名称")
    private String title;
    @ApiModelProperty("详情地址")
    private String address;
    @ApiModelProperty("学校ID")
    private Long orgId;
    @ApiModelProperty("类型ID")
    private Long tagId;
    @ApiModelProperty("类型名称")
    private String tagName;
    @ApiModelProperty("支持同时使用 1是 0否")
    private Boolean useSimultaneously;
    @ApiModelProperty("状态 1启用 0禁用")
    private Boolean enabled;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;

    public static void main(String[] args) {
        YsSite data = new YsSite();
        data.setTitle("操场");
        data.setOrgId(1452L);
        data.setAddress("紫城中学操场");
        data.setTagId(23L);
        data.setUseSimultaneously(true);
        data.setEnabled(true);
        System.out.println(JsonUtil.objectToJson(data));
    }
}
